package com.erp.erp_servers.money;

import com.erp.erp_entitys.money.entity.ReceivePaymentRefundEntity;

import java.util.List;

/**
 * @ClassName : IReceivePaymentRefundService
 * @Description : 资金管理-收款-退款接口
 * @Author : lst
 * @Date: 2020-12-07 21:35
 */
public interface IReceivePaymentRefundService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    ReceivePaymentRefundEntity queryById(Integer id);

    /**
     * 通过实体作为筛选条件查询
     *
     * @param receivePaymentRefund 实例对象
     * @return 对象列表
     */
    List<ReceivePaymentRefundEntity> queryAll(ReceivePaymentRefundEntity receivePaymentRefund);

    /**
     * 新增数据
     *
     * @param receivePaymentRefund 实例对象
     * @return 影响行数
     */
    int insert(ReceivePaymentRefundEntity receivePaymentRefund);

    /**
     * 详情批量新增
     * @param list 新增对象集合
     * @return 影响行数
     */
    int addList(List<ReceivePaymentRefundEntity> list);

    /**
     * 修改数据
     *
     * @param receivePaymentRefund 实例对象
     * @return 影响行数
     */
    int update(ReceivePaymentRefundEntity receivePaymentRefund);
}
